﻿using System.Collections.Generic;
using System.Linq;
using WYJCore;
using WYJWeb;

namespace WYJWeb.Models
{
    public class User : BaseModel, IUser
    {
        /// <summary>
        /// 登录名
        /// </summary>
        [Column(Unique = true)]
        public string LoginId { get; set; }

        /// <summary>
        /// 登录密码
        /// </summary>
        [Column]
        public string Password { get; set; }

        /// <summary>
        /// 用户角色
        /// </summary>
        [Column]
        public Role Role { get; set; }


        /// <summary>
        /// 是否已禁用
        /// </summary>
        [Column]
        public bool IsDisable { get; set; }
    }
}
